package com.example.sandabackend.mapper;

import com.example.sandabackend.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.*;

import java.util.List;

/**
* @author 不过青丝白发
* @description 针对表【sys_name】的数据库操作Mapper
* @createDate 2023-04-05 15:22:53
* @Entity sandabackend.entity.User
*/
@Mapper
public interface UserMapper extends BaseMapper<User> {

    List<User> findAll();

    //增加
    int insert(User user);
    //修改
    int update(User user);
    //删除
    Integer delete(@Param("id") Integer id);
    //分页
    List<User> findPage(@Param("pageNum") Integer pageNum,@Param("pageSize") Integer pageSize);
    //分页计数
    Integer countTotal();
}




